package org.eduapp.trains.dao.announce;

import org.eduapp.trains.DAOException;
import org.eduapp.trains.dao.BaseDAO;
import org.eduapp.trains.model.announce.ModelAnnounce;
import org.eduapp.trains.web.support.PaginationSupport;

public interface AnnounceDAO extends BaseDAO<ModelAnnounce> {
	
	/**
	 * Get announce models by pager
	 * @param model
	 * @param pageSize
	 * @param offset
	 * @param order
	 * @param isDesc
	 * @return
	 * @throws DAOException
	 */
	PaginationSupport<ModelAnnounce> get (ModelAnnounce model,
			int pageSize, int offset, String order, Boolean isDesc) throws DAOException;
	
}
